/**
 */
package org.karelun.whiteboard.impl;

import org.eclipse.emf.ecore.EClass;

import org.karelun.whiteboard.ArrowStyle;
import org.karelun.whiteboard.BeizerCurve;
import org.karelun.whiteboard.Dimension;
import org.karelun.whiteboard.Graph;
import org.karelun.whiteboard.Location;
import org.karelun.whiteboard.Named;
import org.karelun.whiteboard.Sheet;
import org.karelun.whiteboard.WhiteboardPackage;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Beizer Curve</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getWidth <em>Width</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getHeight <em>Height</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getName <em>Name</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getId <em>Id</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getSheet <em>Sheet</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getStartPoint <em>Start Point</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getStartArrowStyle <em>Start Arrow Style</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getControlPoint1 <em>Control Point1</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getControlPoint2 <em>Control Point2</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getEndPoint <em>End Point</em>}</li>
 *   <li>{@link org.karelun.whiteboard.impl.BeizerCurveImpl#getEndArrowStyle <em>End Arrow Style</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class BeizerCurveImpl extends DecoratorImpl implements BeizerCurve {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BeizerCurveImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return WhiteboardPackage.Literals.BEIZER_CURVE;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getWidth() {
		return (Integer)eGet(WhiteboardPackage.Literals.DIMENSION__WIDTH, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setWidth(int newWidth) {
		eSet(WhiteboardPackage.Literals.DIMENSION__WIDTH, newWidth);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getHeight() {
		return (Integer)eGet(WhiteboardPackage.Literals.DIMENSION__HEIGHT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setHeight(int newHeight) {
		eSet(WhiteboardPackage.Literals.DIMENSION__HEIGHT, newHeight);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
		return (String)eGet(WhiteboardPackage.Literals.NAMED__NAME, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setName(String newName) {
		eSet(WhiteboardPackage.Literals.NAMED__NAME, newName);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getId() {
		return (String)eGet(WhiteboardPackage.Literals.NAMED__ID, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setId(String newId) {
		eSet(WhiteboardPackage.Literals.NAMED__ID, newId);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Sheet getSheet() {
		return (Sheet)eGet(WhiteboardPackage.Literals.GRAPH__SHEET, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSheet(Sheet newSheet) {
		eSet(WhiteboardPackage.Literals.GRAPH__SHEET, newSheet);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getStartPoint() {
		return (Location)eGet(WhiteboardPackage.Literals.BEIZER_CURVE__START_POINT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setStartPoint(Location newStartPoint) {
		eSet(WhiteboardPackage.Literals.BEIZER_CURVE__START_POINT, newStartPoint);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ArrowStyle getStartArrowStyle() {
		return (ArrowStyle)eGet(WhiteboardPackage.Literals.BEIZER_CURVE__START_ARROW_STYLE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setStartArrowStyle(ArrowStyle newStartArrowStyle) {
		eSet(WhiteboardPackage.Literals.BEIZER_CURVE__START_ARROW_STYLE, newStartArrowStyle);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getControlPoint1() {
		return (Location)eGet(WhiteboardPackage.Literals.BEIZER_CURVE__CONTROL_POINT1, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setControlPoint1(Location newControlPoint1) {
		eSet(WhiteboardPackage.Literals.BEIZER_CURVE__CONTROL_POINT1, newControlPoint1);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getControlPoint2() {
		return (Location)eGet(WhiteboardPackage.Literals.BEIZER_CURVE__CONTROL_POINT2, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setControlPoint2(Location newControlPoint2) {
		eSet(WhiteboardPackage.Literals.BEIZER_CURVE__CONTROL_POINT2, newControlPoint2);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Location getEndPoint() {
		return (Location)eGet(WhiteboardPackage.Literals.BEIZER_CURVE__END_POINT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setEndPoint(Location newEndPoint) {
		eSet(WhiteboardPackage.Literals.BEIZER_CURVE__END_POINT, newEndPoint);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ArrowStyle getEndArrowStyle() {
		return (ArrowStyle)eGet(WhiteboardPackage.Literals.BEIZER_CURVE__END_ARROW_STYLE, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setEndArrowStyle(ArrowStyle newEndArrowStyle) {
		eSet(WhiteboardPackage.Literals.BEIZER_CURVE__END_ARROW_STYLE, newEndArrowStyle);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void getWhiteboard() {
		// TODO: implement this method
		// Ensure that you remove @generated or mark it @generated NOT
		throw new UnsupportedOperationException();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
		if (baseClass == Dimension.class) {
			switch (derivedFeatureID) {
				case WhiteboardPackage.BEIZER_CURVE__WIDTH: return WhiteboardPackage.DIMENSION__WIDTH;
				case WhiteboardPackage.BEIZER_CURVE__HEIGHT: return WhiteboardPackage.DIMENSION__HEIGHT;
				default: return -1;
			}
		}
		if (baseClass == Named.class) {
			switch (derivedFeatureID) {
				case WhiteboardPackage.BEIZER_CURVE__NAME: return WhiteboardPackage.NAMED__NAME;
				case WhiteboardPackage.BEIZER_CURVE__ID: return WhiteboardPackage.NAMED__ID;
				default: return -1;
			}
		}
		if (baseClass == Graph.class) {
			switch (derivedFeatureID) {
				case WhiteboardPackage.BEIZER_CURVE__SHEET: return WhiteboardPackage.GRAPH__SHEET;
				default: return -1;
			}
		}
		return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
		if (baseClass == Dimension.class) {
			switch (baseFeatureID) {
				case WhiteboardPackage.DIMENSION__WIDTH: return WhiteboardPackage.BEIZER_CURVE__WIDTH;
				case WhiteboardPackage.DIMENSION__HEIGHT: return WhiteboardPackage.BEIZER_CURVE__HEIGHT;
				default: return -1;
			}
		}
		if (baseClass == Named.class) {
			switch (baseFeatureID) {
				case WhiteboardPackage.NAMED__NAME: return WhiteboardPackage.BEIZER_CURVE__NAME;
				case WhiteboardPackage.NAMED__ID: return WhiteboardPackage.BEIZER_CURVE__ID;
				default: return -1;
			}
		}
		if (baseClass == Graph.class) {
			switch (baseFeatureID) {
				case WhiteboardPackage.GRAPH__SHEET: return WhiteboardPackage.BEIZER_CURVE__SHEET;
				default: return -1;
			}
		}
		return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
	}

} //BeizerCurveImpl
